/**
 * Classify.js
 *
 * @description :: TODO: You might write a short summary of how this model works and what it represents here.
 * @docs        :: http://sailsjs.org/documentation/concepts/models-and-orm/models
 */
const uuid = require('node-uuid');

module.exports = {

  tableName: 'sails_classify',
  autoCreatedAt: false,
  autoUpdatedAt: false,
  attributes: {
    id: {
      type: 'string',
      primary: true,
      required: true,
      defaultsTo: function () {
        return uuid.v4();
      }
    },
    parent_sn: {
      type: 'string',
      columnName: 'parent_sn'
    },
    parent_info: {
      type: 'string',
      columnName: 'parent_info'
    },
    child_sn: {
      type: 'string',
      columnName: 'child_sn'
    },
    keyword: {
      type: 'string',
      columnName: 'keyword'
    },
    parent_id: {
      type: 'string',
      columnName: 'parent_id'
    },
    attribute: {
      type: 'string',
      columnName: 'attribute_name'
    }
  }
};

